<template>
  <div>
    <div class="nav">
      <img class="logo" src="../assets/Kotlin.png" alt="" />
      <div class="title main">编程导航</div>
      <div class="title">主页</div>
      <div class="title">学习</div>
      <div class="title">资源</div>
      <div class="title">简历</div>
      <el-input
        class="search-input"
        v-model="input"
        placeholder="搜索..."
      ></el-input>
      <el-button class="search-btn" type="primary" icon="el-icon-search"
        >搜索</el-button
      >
      <input type="text" value="发布文章" />
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {
      input: "",
    };
  },
  methods: {},
};
</script>

<style scoped>
.nav {
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  display: flex;
  justify-content: left;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.logo {
  height: 40px;
  margin-left: 10px;
}

.nav .main {
  font-weight: 600;
}

.title {
  width: 100px;
  margin-left: 20px;
}

.search-input {
  width: 300px;
  margin-left: 300px;
}

.search-btn {
  width: 100px;
}
</style>
